package com.guaoran.interview.spring.source;

import com.guaoran.interview.spring.event.BlackListEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author : 孤傲然
 * @description : 事件监听
 * @date :2020/1/2 13:58
 */
@Component
public class BlackListNotifierSource implements ApplicationListener<BlackListEvent> {
    @Override
    public void onApplicationEvent(BlackListEvent blackListEvent) {
        System.out.println("BlackListNotifier:"+blackListEvent);
    }
}
